using JTZY.Model.Business;

namespace JTZY.Model.Spec
{
    /// <summary>
    /// 商品类型属性表
    /// </summary>
    [SugarTable("corecmsgoodstypespec")]
    public class Corecmsgoodstypespec
    {
        /// <summary>
        /// 序列 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 属性名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 属性排序 
        /// </summary>
        public int Sort { get; set; }

        [Navigate(NavigateType.OneToMany, nameof(Corecmsgoodstypespecvalue.SpecId), nameof(Id))] //自定义关系映射
        public List<Corecmsgoodstypespecvalue> CorecmsgoodstypespecvalueNav { get; set; }
    }
}